package com.neuedu.funlifebbs.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 评论类
 * @author myh
 * @version 2019年8月17日上午10:24:55
 *
 */
public class Comments {
	private int id;
	/**
	 *  评论内容
	 */
	private String content;
	/**
	 *  评论时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date commenttime;
	/**
	 *  评论楼层
	 */
	private int floor;
	/**
	 *  评论积分
	 */
	private int integral=10;
	/**
	 *  评论状态 0正常，1封禁
	 */
	private int status=0;
	/**
	 *  所属帖子
	 */
	private Topics topics;
	/**
	 *  评论用户 --一对一关系--->一条评论对应一个用户
	 */
	private Users users;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the commenttime
	 */
	public Date getCommenttime() {
		return commenttime;
	}

	/**
	 * @param commenttime
	 *            the commenttime to set
	 */
	public void setCommenttime(Date commenttime) {
		this.commenttime = commenttime;
	}

	/**
	 * @return the floor
	 */
	public int getFloor() {
		return floor;
	}

	/**
	 * @param floor
	 *            the floor to set
	 */
	public void setFloor(int floor) {
		this.floor = floor;
	}

	/**
	 * @return the integral
	 */
	public int getIntegral() {
		return integral;
	}

	/**
	 * @param integral
	 *            the integral to set
	 */
	public void setIntegral(int integral) {
		this.integral = integral;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the topics
	 */
	public Topics getTopics() {
		return topics;
	}

	/**
	 * @param topics
	 *            the topics to set
	 */
	public void setTopics(Topics topics) {
		this.topics = topics;
	}

	/**
	 * @return the users
	 */
	public Users getUsers() {
		return users;
	}

	/**
	 * @param users
	 *            the users to set
	 */
	public void setUsers(Users users) {
		this.users = users;
	}

}
